package com.five.base.configuration;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @ClassName UploadLogApplicationRunner
 * @Author xuan
 * @Date 19-1-7 下午8:41
 * @Version 1.0
 * @Description 定时上传log日志
 **/
@Component
@Slf4j
public class UploadLogApplicationRunner {

    @Autowired
    AliyunOssConfiguration aliyunOss;

    @Scheduled(initialDelay = 5000, fixedDelay = 1000 * 60 * 60 * 6)
    public void UploadTimer() {
        log.info("开始执行上传日志");
        aliyunOss.isUploadSuccess();
    }

}
